package com.woniuxy.hotel.api;

import com.woniuxy.common.Result;
import com.woniuxy.hotel.form.SettledForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author kevin kwok
 * @create 2021-05-24 15:12
 */
/*商家入驻服务的接口*/
@FeignClient(value = "business",contextId = "settle")
public interface BusinessSettled {
    /*新商家申请入驻*/
    @PostMapping("/newBusiness")
    public Result newBusiness(@RequestBody SettledForm settledForm);

    /*审核商家入驻申请（同意、拒绝）*/
    @PutMapping("/checkBusiness")
    public Result checkBusiness(String hotelName);

}
